package qldc.pm.tienan.model;

import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.DateUtil;
import com.liferay.portal.kernel.util.ProxyUtil;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.model.BaseModel;
import com.liferay.portal.model.impl.BaseModelImpl;
import com.liferay.portal.util.PortalUtil;

import qldc.pm.tienan.service.ClpSerializer;
import qldc.pm.tienan.service.YeuCauTrichLucLocalServiceUtil;

import java.io.Serializable;

import java.lang.reflect.Method;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;


public class YeuCauTrichLucClp extends BaseModelImpl<YeuCauTrichLuc>
    implements YeuCauTrichLuc {
    private long _yeuCauTrichLucId;
    private long _userId;
    private String _userUuid;
    private String _userName;
    private Date _createDate;
    private Date _modifiedDate;
    private String _hoVaTenNguoiYeuCauTrichLuc;
    private String _kinhGui;
    private int _gioiTinh;
    private String _quocTich;
    private long _danTocId;
    private String _soCMNDDoiTuongTrichLuc;
    private Date _ngayCapCMNDDoiTuongTrichLuc;
    private String _noiCapCMNDDoiTuongTrichLuc;
    private String _soHoChieuDoiTuongTrichLuc;
    private Date _ngayCapHoChieuDoiTuongTrichLuc;
    private String _noiCapHoChieuDoiTuongTrichLuc;
    private String _soDinhDanhCaNhanDoiTuongTrichLuc;
    private String _hoVaTenDoiTuongTrichLuc;
    private Date _ngaySinhDoiTuongTrichLuc;
    private long _noiThuongTruDoiTuongTrichLucTinhId;
    private long _noiThuongTruDoiTuongTrichLucQuanHuyenId;
    private long _noiThuongTruDoiTuongTrichLucPhuongXaId;
    private String _noiThuongTruDoiTuongTrichLucDiaChi;
    private String _soSoHoKhauDoiTuongTrichLuc;
    private String _noiDungTrichLuc;
    private Date _ngayDeNghiTraTrichLuc;
    private Date _ngayLapTrichLuc;
    private String _chuThich;
    private String _maYeuCauTrichLuc;
    private String _hoVaTenGoiKhac;
    private String _hoVaTenCha;
    private String _hoVaTenMe;
    private String _hoTenVoHoacChong;
    private String _coQuanYeuCauTrichLuc;
    private long _noiTamTruDoiTuongTrichLucTinhId;
    private long _noiTamTruDoiTuongTrichLucQuanHuyenId;
    private long _noiTamTruDoiTuongTrichLucPhuongXaId;
    private String _noiTamTruDoiTuongTrichLucDiaChi;
    private Boolean _daTrichLuc;
    private String _noiSinh;
    private long _noiSinhTinhId;
    private long _noiSinhQuanHuyenId;
    private long _noiSinhPhuongXaId;
    private BaseModel<?> _yeuCauTrichLucRemoteModel;

    public YeuCauTrichLucClp() {
    }

    @Override
    public Class<?> getModelClass() {
        return YeuCauTrichLuc.class;
    }

    @Override
    public String getModelClassName() {
        return YeuCauTrichLuc.class.getName();
    }

    @Override
    public long getPrimaryKey() {
        return _yeuCauTrichLucId;
    }

    @Override
    public void setPrimaryKey(long primaryKey) {
        setYeuCauTrichLucId(primaryKey);
    }

    @Override
    public Serializable getPrimaryKeyObj() {
        return _yeuCauTrichLucId;
    }

    @Override
    public void setPrimaryKeyObj(Serializable primaryKeyObj) {
        setPrimaryKey(((Long) primaryKeyObj).longValue());
    }

    @Override
    public Map<String, Object> getModelAttributes() {
        Map<String, Object> attributes = new HashMap<String, Object>();

        attributes.put("yeuCauTrichLucId", getYeuCauTrichLucId());
        attributes.put("userId", getUserId());
        attributes.put("userName", getUserName());
        attributes.put("createDate", getCreateDate());
        attributes.put("modifiedDate", getModifiedDate());
        attributes.put("hoVaTenNguoiYeuCauTrichLuc",
            getHoVaTenNguoiYeuCauTrichLuc());
        attributes.put("kinhGui", getKinhGui());
        attributes.put("gioiTinh", getGioiTinh());
        attributes.put("quocTich", getQuocTich());
        attributes.put("danTocId", getDanTocId());
        attributes.put("soCMNDDoiTuongTrichLuc", getSoCMNDDoiTuongTrichLuc());
        attributes.put("ngayCapCMNDDoiTuongTrichLuc",
            getNgayCapCMNDDoiTuongTrichLuc());
        attributes.put("noiCapCMNDDoiTuongTrichLuc",
            getNoiCapCMNDDoiTuongTrichLuc());
        attributes.put("soHoChieuDoiTuongTrichLuc",
            getSoHoChieuDoiTuongTrichLuc());
        attributes.put("ngayCapHoChieuDoiTuongTrichLuc",
            getNgayCapHoChieuDoiTuongTrichLuc());
        attributes.put("noiCapHoChieuDoiTuongTrichLuc",
            getNoiCapHoChieuDoiTuongTrichLuc());
        attributes.put("soDinhDanhCaNhanDoiTuongTrichLuc",
            getSoDinhDanhCaNhanDoiTuongTrichLuc());
        attributes.put("hoVaTenDoiTuongTrichLuc", getHoVaTenDoiTuongTrichLuc());
        attributes.put("ngaySinhDoiTuongTrichLuc", getNgaySinhDoiTuongTrichLuc());
        attributes.put("noiThuongTruDoiTuongTrichLucTinhId",
            getNoiThuongTruDoiTuongTrichLucTinhId());
        attributes.put("noiThuongTruDoiTuongTrichLucQuanHuyenId",
            getNoiThuongTruDoiTuongTrichLucQuanHuyenId());
        attributes.put("noiThuongTruDoiTuongTrichLucPhuongXaId",
            getNoiThuongTruDoiTuongTrichLucPhuongXaId());
        attributes.put("noiThuongTruDoiTuongTrichLucDiaChi",
            getNoiThuongTruDoiTuongTrichLucDiaChi());
        attributes.put("soSoHoKhauDoiTuongTrichLuc",
            getSoSoHoKhauDoiTuongTrichLuc());
        attributes.put("noiDungTrichLuc", getNoiDungTrichLuc());
        attributes.put("ngayDeNghiTraTrichLuc", getNgayDeNghiTraTrichLuc());
        attributes.put("ngayLapTrichLuc", getNgayLapTrichLuc());
        attributes.put("chuThich", getChuThich());
        attributes.put("maYeuCauTrichLuc", getMaYeuCauTrichLuc());
        attributes.put("hoVaTenGoiKhac", getHoVaTenGoiKhac());
        attributes.put("hoVaTenCha", getHoVaTenCha());
        attributes.put("hoVaTenMe", getHoVaTenMe());
        attributes.put("hoTenVoHoacChong", getHoTenVoHoacChong());
        attributes.put("coQuanYeuCauTrichLuc", getCoQuanYeuCauTrichLuc());
        attributes.put("noiTamTruDoiTuongTrichLucTinhId",
            getNoiTamTruDoiTuongTrichLucTinhId());
        attributes.put("noiTamTruDoiTuongTrichLucQuanHuyenId",
            getNoiTamTruDoiTuongTrichLucQuanHuyenId());
        attributes.put("noiTamTruDoiTuongTrichLucPhuongXaId",
            getNoiTamTruDoiTuongTrichLucPhuongXaId());
        attributes.put("noiTamTruDoiTuongTrichLucDiaChi",
            getNoiTamTruDoiTuongTrichLucDiaChi());
        attributes.put("daTrichLuc", getDaTrichLuc());
        attributes.put("noiSinh", getNoiSinh());
        attributes.put("noiSinhTinhId", getNoiSinhTinhId());
        attributes.put("noiSinhQuanHuyenId", getNoiSinhQuanHuyenId());
        attributes.put("noiSinhPhuongXaId", getNoiSinhPhuongXaId());

        return attributes;
    }

    @Override
    public void setModelAttributes(Map<String, Object> attributes) {
        Long yeuCauTrichLucId = (Long) attributes.get("yeuCauTrichLucId");

        if (yeuCauTrichLucId != null) {
            setYeuCauTrichLucId(yeuCauTrichLucId);
        }

        Long userId = (Long) attributes.get("userId");

        if (userId != null) {
            setUserId(userId);
        }

        String userName = (String) attributes.get("userName");

        if (userName != null) {
            setUserName(userName);
        }

        Date createDate = (Date) attributes.get("createDate");

        if (createDate != null) {
            setCreateDate(createDate);
        }

        Date modifiedDate = (Date) attributes.get("modifiedDate");

        if (modifiedDate != null) {
            setModifiedDate(modifiedDate);
        }

        String hoVaTenNguoiYeuCauTrichLuc = (String) attributes.get(
                "hoVaTenNguoiYeuCauTrichLuc");

        if (hoVaTenNguoiYeuCauTrichLuc != null) {
            setHoVaTenNguoiYeuCauTrichLuc(hoVaTenNguoiYeuCauTrichLuc);
        }

        String kinhGui = (String) attributes.get("kinhGui");

        if (kinhGui != null) {
            setKinhGui(kinhGui);
        }

        Integer gioiTinh = (Integer) attributes.get("gioiTinh");

        if (gioiTinh != null) {
            setGioiTinh(gioiTinh);
        }

        String quocTich = (String) attributes.get("quocTich");

        if (quocTich != null) {
            setQuocTich(quocTich);
        }

        Long danTocId = (Long) attributes.get("danTocId");

        if (danTocId != null) {
            setDanTocId(danTocId);
        }

        String soCMNDDoiTuongTrichLuc = (String) attributes.get(
                "soCMNDDoiTuongTrichLuc");

        if (soCMNDDoiTuongTrichLuc != null) {
            setSoCMNDDoiTuongTrichLuc(soCMNDDoiTuongTrichLuc);
        }

        Date ngayCapCMNDDoiTuongTrichLuc = (Date) attributes.get(
                "ngayCapCMNDDoiTuongTrichLuc");

        if (ngayCapCMNDDoiTuongTrichLuc != null) {
            setNgayCapCMNDDoiTuongTrichLuc(ngayCapCMNDDoiTuongTrichLuc);
        }

        String noiCapCMNDDoiTuongTrichLuc = (String) attributes.get(
                "noiCapCMNDDoiTuongTrichLuc");

        if (noiCapCMNDDoiTuongTrichLuc != null) {
            setNoiCapCMNDDoiTuongTrichLuc(noiCapCMNDDoiTuongTrichLuc);
        }

        String soHoChieuDoiTuongTrichLuc = (String) attributes.get(
                "soHoChieuDoiTuongTrichLuc");

        if (soHoChieuDoiTuongTrichLuc != null) {
            setSoHoChieuDoiTuongTrichLuc(soHoChieuDoiTuongTrichLuc);
        }

        Date ngayCapHoChieuDoiTuongTrichLuc = (Date) attributes.get(
                "ngayCapHoChieuDoiTuongTrichLuc");

        if (ngayCapHoChieuDoiTuongTrichLuc != null) {
            setNgayCapHoChieuDoiTuongTrichLuc(ngayCapHoChieuDoiTuongTrichLuc);
        }

        String noiCapHoChieuDoiTuongTrichLuc = (String) attributes.get(
                "noiCapHoChieuDoiTuongTrichLuc");

        if (noiCapHoChieuDoiTuongTrichLuc != null) {
            setNoiCapHoChieuDoiTuongTrichLuc(noiCapHoChieuDoiTuongTrichLuc);
        }

        String soDinhDanhCaNhanDoiTuongTrichLuc = (String) attributes.get(
                "soDinhDanhCaNhanDoiTuongTrichLuc");

        if (soDinhDanhCaNhanDoiTuongTrichLuc != null) {
            setSoDinhDanhCaNhanDoiTuongTrichLuc(soDinhDanhCaNhanDoiTuongTrichLuc);
        }

        String hoVaTenDoiTuongTrichLuc = (String) attributes.get(
                "hoVaTenDoiTuongTrichLuc");

        if (hoVaTenDoiTuongTrichLuc != null) {
            setHoVaTenDoiTuongTrichLuc(hoVaTenDoiTuongTrichLuc);
        }

        Date ngaySinhDoiTuongTrichLuc = (Date) attributes.get(
                "ngaySinhDoiTuongTrichLuc");

        if (ngaySinhDoiTuongTrichLuc != null) {
            setNgaySinhDoiTuongTrichLuc(ngaySinhDoiTuongTrichLuc);
        }

        Long noiThuongTruDoiTuongTrichLucTinhId = (Long) attributes.get(
                "noiThuongTruDoiTuongTrichLucTinhId");

        if (noiThuongTruDoiTuongTrichLucTinhId != null) {
            setNoiThuongTruDoiTuongTrichLucTinhId(noiThuongTruDoiTuongTrichLucTinhId);
        }

        Long noiThuongTruDoiTuongTrichLucQuanHuyenId = (Long) attributes.get(
                "noiThuongTruDoiTuongTrichLucQuanHuyenId");

        if (noiThuongTruDoiTuongTrichLucQuanHuyenId != null) {
            setNoiThuongTruDoiTuongTrichLucQuanHuyenId(noiThuongTruDoiTuongTrichLucQuanHuyenId);
        }

        Long noiThuongTruDoiTuongTrichLucPhuongXaId = (Long) attributes.get(
                "noiThuongTruDoiTuongTrichLucPhuongXaId");

        if (noiThuongTruDoiTuongTrichLucPhuongXaId != null) {
            setNoiThuongTruDoiTuongTrichLucPhuongXaId(noiThuongTruDoiTuongTrichLucPhuongXaId);
        }

        String noiThuongTruDoiTuongTrichLucDiaChi = (String) attributes.get(
                "noiThuongTruDoiTuongTrichLucDiaChi");

        if (noiThuongTruDoiTuongTrichLucDiaChi != null) {
            setNoiThuongTruDoiTuongTrichLucDiaChi(noiThuongTruDoiTuongTrichLucDiaChi);
        }

        String soSoHoKhauDoiTuongTrichLuc = (String) attributes.get(
                "soSoHoKhauDoiTuongTrichLuc");

        if (soSoHoKhauDoiTuongTrichLuc != null) {
            setSoSoHoKhauDoiTuongTrichLuc(soSoHoKhauDoiTuongTrichLuc);
        }

        String noiDungTrichLuc = (String) attributes.get("noiDungTrichLuc");

        if (noiDungTrichLuc != null) {
            setNoiDungTrichLuc(noiDungTrichLuc);
        }

        Date ngayDeNghiTraTrichLuc = (Date) attributes.get(
                "ngayDeNghiTraTrichLuc");

        if (ngayDeNghiTraTrichLuc != null) {
            setNgayDeNghiTraTrichLuc(ngayDeNghiTraTrichLuc);
        }

        Date ngayLapTrichLuc = (Date) attributes.get("ngayLapTrichLuc");

        if (ngayLapTrichLuc != null) {
            setNgayLapTrichLuc(ngayLapTrichLuc);
        }

        String chuThich = (String) attributes.get("chuThich");

        if (chuThich != null) {
            setChuThich(chuThich);
        }

        String maYeuCauTrichLuc = (String) attributes.get("maYeuCauTrichLuc");

        if (maYeuCauTrichLuc != null) {
            setMaYeuCauTrichLuc(maYeuCauTrichLuc);
        }

        String hoVaTenGoiKhac = (String) attributes.get("hoVaTenGoiKhac");

        if (hoVaTenGoiKhac != null) {
            setHoVaTenGoiKhac(hoVaTenGoiKhac);
        }

        String hoVaTenCha = (String) attributes.get("hoVaTenCha");

        if (hoVaTenCha != null) {
            setHoVaTenCha(hoVaTenCha);
        }

        String hoVaTenMe = (String) attributes.get("hoVaTenMe");

        if (hoVaTenMe != null) {
            setHoVaTenMe(hoVaTenMe);
        }

        String hoTenVoHoacChong = (String) attributes.get("hoTenVoHoacChong");

        if (hoTenVoHoacChong != null) {
            setHoTenVoHoacChong(hoTenVoHoacChong);
        }

        String coQuanYeuCauTrichLuc = (String) attributes.get(
                "coQuanYeuCauTrichLuc");

        if (coQuanYeuCauTrichLuc != null) {
            setCoQuanYeuCauTrichLuc(coQuanYeuCauTrichLuc);
        }

        Long noiTamTruDoiTuongTrichLucTinhId = (Long) attributes.get(
                "noiTamTruDoiTuongTrichLucTinhId");

        if (noiTamTruDoiTuongTrichLucTinhId != null) {
            setNoiTamTruDoiTuongTrichLucTinhId(noiTamTruDoiTuongTrichLucTinhId);
        }

        Long noiTamTruDoiTuongTrichLucQuanHuyenId = (Long) attributes.get(
                "noiTamTruDoiTuongTrichLucQuanHuyenId");

        if (noiTamTruDoiTuongTrichLucQuanHuyenId != null) {
            setNoiTamTruDoiTuongTrichLucQuanHuyenId(noiTamTruDoiTuongTrichLucQuanHuyenId);
        }

        Long noiTamTruDoiTuongTrichLucPhuongXaId = (Long) attributes.get(
                "noiTamTruDoiTuongTrichLucPhuongXaId");

        if (noiTamTruDoiTuongTrichLucPhuongXaId != null) {
            setNoiTamTruDoiTuongTrichLucPhuongXaId(noiTamTruDoiTuongTrichLucPhuongXaId);
        }

        String noiTamTruDoiTuongTrichLucDiaChi = (String) attributes.get(
                "noiTamTruDoiTuongTrichLucDiaChi");

        if (noiTamTruDoiTuongTrichLucDiaChi != null) {
            setNoiTamTruDoiTuongTrichLucDiaChi(noiTamTruDoiTuongTrichLucDiaChi);
        }

        Boolean daTrichLuc = (Boolean) attributes.get("daTrichLuc");

        if (daTrichLuc != null) {
            setDaTrichLuc(daTrichLuc);
        }

        String noiSinh = (String) attributes.get("noiSinh");

        if (noiSinh != null) {
            setNoiSinh(noiSinh);
        }

        Long noiSinhTinhId = (Long) attributes.get("noiSinhTinhId");

        if (noiSinhTinhId != null) {
            setNoiSinhTinhId(noiSinhTinhId);
        }

        Long noiSinhQuanHuyenId = (Long) attributes.get("noiSinhQuanHuyenId");

        if (noiSinhQuanHuyenId != null) {
            setNoiSinhQuanHuyenId(noiSinhQuanHuyenId);
        }

        Long noiSinhPhuongXaId = (Long) attributes.get("noiSinhPhuongXaId");

        if (noiSinhPhuongXaId != null) {
            setNoiSinhPhuongXaId(noiSinhPhuongXaId);
        }
    }

    @Override
    public long getYeuCauTrichLucId() {
        return _yeuCauTrichLucId;
    }

    @Override
    public void setYeuCauTrichLucId(long yeuCauTrichLucId) {
        _yeuCauTrichLucId = yeuCauTrichLucId;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setYeuCauTrichLucId",
                        long.class);

                method.invoke(_yeuCauTrichLucRemoteModel, yeuCauTrichLucId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getUserId() {
        return _userId;
    }

    @Override
    public void setUserId(long userId) {
        _userId = userId;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setUserId", long.class);

                method.invoke(_yeuCauTrichLucRemoteModel, userId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getUserUuid() throws SystemException {
        return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
    }

    @Override
    public void setUserUuid(String userUuid) {
        _userUuid = userUuid;
    }

    @Override
    public String getUserName() {
        return _userName;
    }

    @Override
    public void setUserName(String userName) {
        _userName = userName;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setUserName", String.class);

                method.invoke(_yeuCauTrichLucRemoteModel, userName);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public Date getCreateDate() {
        return _createDate;
    }

    @Override
    public void setCreateDate(Date createDate) {
        _createDate = createDate;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setCreateDate", Date.class);

                method.invoke(_yeuCauTrichLucRemoteModel, createDate);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public Date getModifiedDate() {
        return _modifiedDate;
    }

    @Override
    public void setModifiedDate(Date modifiedDate) {
        _modifiedDate = modifiedDate;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setModifiedDate", Date.class);

                method.invoke(_yeuCauTrichLucRemoteModel, modifiedDate);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getHoVaTenNguoiYeuCauTrichLuc() {
        return _hoVaTenNguoiYeuCauTrichLuc;
    }

    @Override
    public void setHoVaTenNguoiYeuCauTrichLuc(String hoVaTenNguoiYeuCauTrichLuc) {
        _hoVaTenNguoiYeuCauTrichLuc = hoVaTenNguoiYeuCauTrichLuc;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setHoVaTenNguoiYeuCauTrichLuc",
                        String.class);

                method.invoke(_yeuCauTrichLucRemoteModel,
                    hoVaTenNguoiYeuCauTrichLuc);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getKinhGui() {
        return _kinhGui;
    }

    @Override
    public void setKinhGui(String kinhGui) {
        _kinhGui = kinhGui;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setKinhGui", String.class);

                method.invoke(_yeuCauTrichLucRemoteModel, kinhGui);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public int getGioiTinh() {
        return _gioiTinh;
    }

    @Override
    public void setGioiTinh(int gioiTinh) {
        _gioiTinh = gioiTinh;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setGioiTinh", int.class);

                method.invoke(_yeuCauTrichLucRemoteModel, gioiTinh);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getQuocTich() {
        return _quocTich;
    }

    @Override
    public void setQuocTich(String quocTich) {
        _quocTich = quocTich;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setQuocTich", String.class);

                method.invoke(_yeuCauTrichLucRemoteModel, quocTich);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getDanTocId() {
        return _danTocId;
    }

    @Override
    public void setDanTocId(long danTocId) {
        _danTocId = danTocId;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setDanTocId", long.class);

                method.invoke(_yeuCauTrichLucRemoteModel, danTocId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getSoCMNDDoiTuongTrichLuc() {
        return _soCMNDDoiTuongTrichLuc;
    }

    @Override
    public void setSoCMNDDoiTuongTrichLuc(String soCMNDDoiTuongTrichLuc) {
        _soCMNDDoiTuongTrichLuc = soCMNDDoiTuongTrichLuc;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setSoCMNDDoiTuongTrichLuc",
                        String.class);

                method.invoke(_yeuCauTrichLucRemoteModel, soCMNDDoiTuongTrichLuc);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public Date getNgayCapCMNDDoiTuongTrichLuc() {
        return _ngayCapCMNDDoiTuongTrichLuc;
    }

    @Override
    public void setNgayCapCMNDDoiTuongTrichLuc(Date ngayCapCMNDDoiTuongTrichLuc) {
        _ngayCapCMNDDoiTuongTrichLuc = ngayCapCMNDDoiTuongTrichLuc;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setNgayCapCMNDDoiTuongTrichLuc",
                        Date.class);

                method.invoke(_yeuCauTrichLucRemoteModel,
                    ngayCapCMNDDoiTuongTrichLuc);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getNoiCapCMNDDoiTuongTrichLuc() {
        return _noiCapCMNDDoiTuongTrichLuc;
    }

    @Override
    public void setNoiCapCMNDDoiTuongTrichLuc(String noiCapCMNDDoiTuongTrichLuc) {
        _noiCapCMNDDoiTuongTrichLuc = noiCapCMNDDoiTuongTrichLuc;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiCapCMNDDoiTuongTrichLuc",
                        String.class);

                method.invoke(_yeuCauTrichLucRemoteModel,
                    noiCapCMNDDoiTuongTrichLuc);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getSoHoChieuDoiTuongTrichLuc() {
        return _soHoChieuDoiTuongTrichLuc;
    }

    @Override
    public void setSoHoChieuDoiTuongTrichLuc(String soHoChieuDoiTuongTrichLuc) {
        _soHoChieuDoiTuongTrichLuc = soHoChieuDoiTuongTrichLuc;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setSoHoChieuDoiTuongTrichLuc",
                        String.class);

                method.invoke(_yeuCauTrichLucRemoteModel,
                    soHoChieuDoiTuongTrichLuc);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public Date getNgayCapHoChieuDoiTuongTrichLuc() {
        return _ngayCapHoChieuDoiTuongTrichLuc;
    }

    @Override
    public void setNgayCapHoChieuDoiTuongTrichLuc(
        Date ngayCapHoChieuDoiTuongTrichLuc) {
        _ngayCapHoChieuDoiTuongTrichLuc = ngayCapHoChieuDoiTuongTrichLuc;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setNgayCapHoChieuDoiTuongTrichLuc",
                        Date.class);

                method.invoke(_yeuCauTrichLucRemoteModel,
                    ngayCapHoChieuDoiTuongTrichLuc);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getNoiCapHoChieuDoiTuongTrichLuc() {
        return _noiCapHoChieuDoiTuongTrichLuc;
    }

    @Override
    public void setNoiCapHoChieuDoiTuongTrichLuc(
        String noiCapHoChieuDoiTuongTrichLuc) {
        _noiCapHoChieuDoiTuongTrichLuc = noiCapHoChieuDoiTuongTrichLuc;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiCapHoChieuDoiTuongTrichLuc",
                        String.class);

                method.invoke(_yeuCauTrichLucRemoteModel,
                    noiCapHoChieuDoiTuongTrichLuc);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getSoDinhDanhCaNhanDoiTuongTrichLuc() {
        return _soDinhDanhCaNhanDoiTuongTrichLuc;
    }

    @Override
    public void setSoDinhDanhCaNhanDoiTuongTrichLuc(
        String soDinhDanhCaNhanDoiTuongTrichLuc) {
        _soDinhDanhCaNhanDoiTuongTrichLuc = soDinhDanhCaNhanDoiTuongTrichLuc;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setSoDinhDanhCaNhanDoiTuongTrichLuc",
                        String.class);

                method.invoke(_yeuCauTrichLucRemoteModel,
                    soDinhDanhCaNhanDoiTuongTrichLuc);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getHoVaTenDoiTuongTrichLuc() {
        return _hoVaTenDoiTuongTrichLuc;
    }

    @Override
    public void setHoVaTenDoiTuongTrichLuc(String hoVaTenDoiTuongTrichLuc) {
        _hoVaTenDoiTuongTrichLuc = hoVaTenDoiTuongTrichLuc;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setHoVaTenDoiTuongTrichLuc",
                        String.class);

                method.invoke(_yeuCauTrichLucRemoteModel,
                    hoVaTenDoiTuongTrichLuc);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public Date getNgaySinhDoiTuongTrichLuc() {
        return _ngaySinhDoiTuongTrichLuc;
    }

    @Override
    public void setNgaySinhDoiTuongTrichLuc(Date ngaySinhDoiTuongTrichLuc) {
        _ngaySinhDoiTuongTrichLuc = ngaySinhDoiTuongTrichLuc;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setNgaySinhDoiTuongTrichLuc",
                        Date.class);

                method.invoke(_yeuCauTrichLucRemoteModel,
                    ngaySinhDoiTuongTrichLuc);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getNoiThuongTruDoiTuongTrichLucTinhId() {
        return _noiThuongTruDoiTuongTrichLucTinhId;
    }

    @Override
    public void setNoiThuongTruDoiTuongTrichLucTinhId(
        long noiThuongTruDoiTuongTrichLucTinhId) {
        _noiThuongTruDoiTuongTrichLucTinhId = noiThuongTruDoiTuongTrichLucTinhId;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiThuongTruDoiTuongTrichLucTinhId",
                        long.class);

                method.invoke(_yeuCauTrichLucRemoteModel,
                    noiThuongTruDoiTuongTrichLucTinhId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getNoiThuongTruDoiTuongTrichLucQuanHuyenId() {
        return _noiThuongTruDoiTuongTrichLucQuanHuyenId;
    }

    @Override
    public void setNoiThuongTruDoiTuongTrichLucQuanHuyenId(
        long noiThuongTruDoiTuongTrichLucQuanHuyenId) {
        _noiThuongTruDoiTuongTrichLucQuanHuyenId = noiThuongTruDoiTuongTrichLucQuanHuyenId;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiThuongTruDoiTuongTrichLucQuanHuyenId",
                        long.class);

                method.invoke(_yeuCauTrichLucRemoteModel,
                    noiThuongTruDoiTuongTrichLucQuanHuyenId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getNoiThuongTruDoiTuongTrichLucPhuongXaId() {
        return _noiThuongTruDoiTuongTrichLucPhuongXaId;
    }

    @Override
    public void setNoiThuongTruDoiTuongTrichLucPhuongXaId(
        long noiThuongTruDoiTuongTrichLucPhuongXaId) {
        _noiThuongTruDoiTuongTrichLucPhuongXaId = noiThuongTruDoiTuongTrichLucPhuongXaId;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiThuongTruDoiTuongTrichLucPhuongXaId",
                        long.class);

                method.invoke(_yeuCauTrichLucRemoteModel,
                    noiThuongTruDoiTuongTrichLucPhuongXaId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getNoiThuongTruDoiTuongTrichLucDiaChi() {
        return _noiThuongTruDoiTuongTrichLucDiaChi;
    }

    @Override
    public void setNoiThuongTruDoiTuongTrichLucDiaChi(
        String noiThuongTruDoiTuongTrichLucDiaChi) {
        _noiThuongTruDoiTuongTrichLucDiaChi = noiThuongTruDoiTuongTrichLucDiaChi;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiThuongTruDoiTuongTrichLucDiaChi",
                        String.class);

                method.invoke(_yeuCauTrichLucRemoteModel,
                    noiThuongTruDoiTuongTrichLucDiaChi);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getSoSoHoKhauDoiTuongTrichLuc() {
        return _soSoHoKhauDoiTuongTrichLuc;
    }

    @Override
    public void setSoSoHoKhauDoiTuongTrichLuc(String soSoHoKhauDoiTuongTrichLuc) {
        _soSoHoKhauDoiTuongTrichLuc = soSoHoKhauDoiTuongTrichLuc;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setSoSoHoKhauDoiTuongTrichLuc",
                        String.class);

                method.invoke(_yeuCauTrichLucRemoteModel,
                    soSoHoKhauDoiTuongTrichLuc);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getNoiDungTrichLuc() {
        return _noiDungTrichLuc;
    }

    @Override
    public void setNoiDungTrichLuc(String noiDungTrichLuc) {
        _noiDungTrichLuc = noiDungTrichLuc;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiDungTrichLuc",
                        String.class);

                method.invoke(_yeuCauTrichLucRemoteModel, noiDungTrichLuc);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public Date getNgayDeNghiTraTrichLuc() {
        return _ngayDeNghiTraTrichLuc;
    }

    @Override
    public void setNgayDeNghiTraTrichLuc(Date ngayDeNghiTraTrichLuc) {
        _ngayDeNghiTraTrichLuc = ngayDeNghiTraTrichLuc;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setNgayDeNghiTraTrichLuc",
                        Date.class);

                method.invoke(_yeuCauTrichLucRemoteModel, ngayDeNghiTraTrichLuc);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public Date getNgayLapTrichLuc() {
        return _ngayLapTrichLuc;
    }

    @Override
    public void setNgayLapTrichLuc(Date ngayLapTrichLuc) {
        _ngayLapTrichLuc = ngayLapTrichLuc;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setNgayLapTrichLuc", Date.class);

                method.invoke(_yeuCauTrichLucRemoteModel, ngayLapTrichLuc);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getChuThich() {
        return _chuThich;
    }

    @Override
    public void setChuThich(String chuThich) {
        _chuThich = chuThich;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setChuThich", String.class);

                method.invoke(_yeuCauTrichLucRemoteModel, chuThich);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getMaYeuCauTrichLuc() {
        return _maYeuCauTrichLuc;
    }

    @Override
    public void setMaYeuCauTrichLuc(String maYeuCauTrichLuc) {
        _maYeuCauTrichLuc = maYeuCauTrichLuc;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setMaYeuCauTrichLuc",
                        String.class);

                method.invoke(_yeuCauTrichLucRemoteModel, maYeuCauTrichLuc);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getHoVaTenGoiKhac() {
        return _hoVaTenGoiKhac;
    }

    @Override
    public void setHoVaTenGoiKhac(String hoVaTenGoiKhac) {
        _hoVaTenGoiKhac = hoVaTenGoiKhac;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setHoVaTenGoiKhac",
                        String.class);

                method.invoke(_yeuCauTrichLucRemoteModel, hoVaTenGoiKhac);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getHoVaTenCha() {
        return _hoVaTenCha;
    }

    @Override
    public void setHoVaTenCha(String hoVaTenCha) {
        _hoVaTenCha = hoVaTenCha;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setHoVaTenCha", String.class);

                method.invoke(_yeuCauTrichLucRemoteModel, hoVaTenCha);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getHoVaTenMe() {
        return _hoVaTenMe;
    }

    @Override
    public void setHoVaTenMe(String hoVaTenMe) {
        _hoVaTenMe = hoVaTenMe;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setHoVaTenMe", String.class);

                method.invoke(_yeuCauTrichLucRemoteModel, hoVaTenMe);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getHoTenVoHoacChong() {
        return _hoTenVoHoacChong;
    }

    @Override
    public void setHoTenVoHoacChong(String hoTenVoHoacChong) {
        _hoTenVoHoacChong = hoTenVoHoacChong;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setHoTenVoHoacChong",
                        String.class);

                method.invoke(_yeuCauTrichLucRemoteModel, hoTenVoHoacChong);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getCoQuanYeuCauTrichLuc() {
        return _coQuanYeuCauTrichLuc;
    }

    @Override
    public void setCoQuanYeuCauTrichLuc(String coQuanYeuCauTrichLuc) {
        _coQuanYeuCauTrichLuc = coQuanYeuCauTrichLuc;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setCoQuanYeuCauTrichLuc",
                        String.class);

                method.invoke(_yeuCauTrichLucRemoteModel, coQuanYeuCauTrichLuc);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getNoiTamTruDoiTuongTrichLucTinhId() {
        return _noiTamTruDoiTuongTrichLucTinhId;
    }

    @Override
    public void setNoiTamTruDoiTuongTrichLucTinhId(
        long noiTamTruDoiTuongTrichLucTinhId) {
        _noiTamTruDoiTuongTrichLucTinhId = noiTamTruDoiTuongTrichLucTinhId;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiTamTruDoiTuongTrichLucTinhId",
                        long.class);

                method.invoke(_yeuCauTrichLucRemoteModel,
                    noiTamTruDoiTuongTrichLucTinhId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getNoiTamTruDoiTuongTrichLucQuanHuyenId() {
        return _noiTamTruDoiTuongTrichLucQuanHuyenId;
    }

    @Override
    public void setNoiTamTruDoiTuongTrichLucQuanHuyenId(
        long noiTamTruDoiTuongTrichLucQuanHuyenId) {
        _noiTamTruDoiTuongTrichLucQuanHuyenId = noiTamTruDoiTuongTrichLucQuanHuyenId;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiTamTruDoiTuongTrichLucQuanHuyenId",
                        long.class);

                method.invoke(_yeuCauTrichLucRemoteModel,
                    noiTamTruDoiTuongTrichLucQuanHuyenId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getNoiTamTruDoiTuongTrichLucPhuongXaId() {
        return _noiTamTruDoiTuongTrichLucPhuongXaId;
    }

    @Override
    public void setNoiTamTruDoiTuongTrichLucPhuongXaId(
        long noiTamTruDoiTuongTrichLucPhuongXaId) {
        _noiTamTruDoiTuongTrichLucPhuongXaId = noiTamTruDoiTuongTrichLucPhuongXaId;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiTamTruDoiTuongTrichLucPhuongXaId",
                        long.class);

                method.invoke(_yeuCauTrichLucRemoteModel,
                    noiTamTruDoiTuongTrichLucPhuongXaId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getNoiTamTruDoiTuongTrichLucDiaChi() {
        return _noiTamTruDoiTuongTrichLucDiaChi;
    }

    @Override
    public void setNoiTamTruDoiTuongTrichLucDiaChi(
        String noiTamTruDoiTuongTrichLucDiaChi) {
        _noiTamTruDoiTuongTrichLucDiaChi = noiTamTruDoiTuongTrichLucDiaChi;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiTamTruDoiTuongTrichLucDiaChi",
                        String.class);

                method.invoke(_yeuCauTrichLucRemoteModel,
                    noiTamTruDoiTuongTrichLucDiaChi);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public Boolean getDaTrichLuc() {
        return _daTrichLuc;
    }

    @Override
    public void setDaTrichLuc(Boolean daTrichLuc) {
        _daTrichLuc = daTrichLuc;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setDaTrichLuc", Boolean.class);

                method.invoke(_yeuCauTrichLucRemoteModel, daTrichLuc);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getNoiSinh() {
        return _noiSinh;
    }

    @Override
    public void setNoiSinh(String noiSinh) {
        _noiSinh = noiSinh;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiSinh", String.class);

                method.invoke(_yeuCauTrichLucRemoteModel, noiSinh);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getNoiSinhTinhId() {
        return _noiSinhTinhId;
    }

    @Override
    public void setNoiSinhTinhId(long noiSinhTinhId) {
        _noiSinhTinhId = noiSinhTinhId;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiSinhTinhId", long.class);

                method.invoke(_yeuCauTrichLucRemoteModel, noiSinhTinhId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getNoiSinhQuanHuyenId() {
        return _noiSinhQuanHuyenId;
    }

    @Override
    public void setNoiSinhQuanHuyenId(long noiSinhQuanHuyenId) {
        _noiSinhQuanHuyenId = noiSinhQuanHuyenId;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiSinhQuanHuyenId",
                        long.class);

                method.invoke(_yeuCauTrichLucRemoteModel, noiSinhQuanHuyenId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getNoiSinhPhuongXaId() {
        return _noiSinhPhuongXaId;
    }

    @Override
    public void setNoiSinhPhuongXaId(long noiSinhPhuongXaId) {
        _noiSinhPhuongXaId = noiSinhPhuongXaId;

        if (_yeuCauTrichLucRemoteModel != null) {
            try {
                Class<?> clazz = _yeuCauTrichLucRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiSinhPhuongXaId",
                        long.class);

                method.invoke(_yeuCauTrichLucRemoteModel, noiSinhPhuongXaId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    public BaseModel<?> getYeuCauTrichLucRemoteModel() {
        return _yeuCauTrichLucRemoteModel;
    }

    public void setYeuCauTrichLucRemoteModel(
        BaseModel<?> yeuCauTrichLucRemoteModel) {
        _yeuCauTrichLucRemoteModel = yeuCauTrichLucRemoteModel;
    }

    public Object invokeOnRemoteModel(String methodName,
        Class<?>[] parameterTypes, Object[] parameterValues)
        throws Exception {
        Object[] remoteParameterValues = new Object[parameterValues.length];

        for (int i = 0; i < parameterValues.length; i++) {
            if (parameterValues[i] != null) {
                remoteParameterValues[i] = ClpSerializer.translateInput(parameterValues[i]);
            }
        }

        Class<?> remoteModelClass = _yeuCauTrichLucRemoteModel.getClass();

        ClassLoader remoteModelClassLoader = remoteModelClass.getClassLoader();

        Class<?>[] remoteParameterTypes = new Class[parameterTypes.length];

        for (int i = 0; i < parameterTypes.length; i++) {
            if (parameterTypes[i].isPrimitive()) {
                remoteParameterTypes[i] = parameterTypes[i];
            } else {
                String parameterTypeName = parameterTypes[i].getName();

                remoteParameterTypes[i] = remoteModelClassLoader.loadClass(parameterTypeName);
            }
        }

        Method method = remoteModelClass.getMethod(methodName,
                remoteParameterTypes);

        Object returnValue = method.invoke(_yeuCauTrichLucRemoteModel,
                remoteParameterValues);

        if (returnValue != null) {
            returnValue = ClpSerializer.translateOutput(returnValue);
        }

        return returnValue;
    }

    @Override
    public void persist() throws SystemException {
        if (this.isNew()) {
            YeuCauTrichLucLocalServiceUtil.addYeuCauTrichLuc(this);
        } else {
            YeuCauTrichLucLocalServiceUtil.updateYeuCauTrichLuc(this);
        }
    }

    @Override
    public YeuCauTrichLuc toEscapedModel() {
        return (YeuCauTrichLuc) ProxyUtil.newProxyInstance(YeuCauTrichLuc.class.getClassLoader(),
            new Class[] { YeuCauTrichLuc.class },
            new AutoEscapeBeanHandler(this));
    }

    @Override
    public Object clone() {
        YeuCauTrichLucClp clone = new YeuCauTrichLucClp();

        clone.setYeuCauTrichLucId(getYeuCauTrichLucId());
        clone.setUserId(getUserId());
        clone.setUserName(getUserName());
        clone.setCreateDate(getCreateDate());
        clone.setModifiedDate(getModifiedDate());
        clone.setHoVaTenNguoiYeuCauTrichLuc(getHoVaTenNguoiYeuCauTrichLuc());
        clone.setKinhGui(getKinhGui());
        clone.setGioiTinh(getGioiTinh());
        clone.setQuocTich(getQuocTich());
        clone.setDanTocId(getDanTocId());
        clone.setSoCMNDDoiTuongTrichLuc(getSoCMNDDoiTuongTrichLuc());
        clone.setNgayCapCMNDDoiTuongTrichLuc(getNgayCapCMNDDoiTuongTrichLuc());
        clone.setNoiCapCMNDDoiTuongTrichLuc(getNoiCapCMNDDoiTuongTrichLuc());
        clone.setSoHoChieuDoiTuongTrichLuc(getSoHoChieuDoiTuongTrichLuc());
        clone.setNgayCapHoChieuDoiTuongTrichLuc(getNgayCapHoChieuDoiTuongTrichLuc());
        clone.setNoiCapHoChieuDoiTuongTrichLuc(getNoiCapHoChieuDoiTuongTrichLuc());
        clone.setSoDinhDanhCaNhanDoiTuongTrichLuc(getSoDinhDanhCaNhanDoiTuongTrichLuc());
        clone.setHoVaTenDoiTuongTrichLuc(getHoVaTenDoiTuongTrichLuc());
        clone.setNgaySinhDoiTuongTrichLuc(getNgaySinhDoiTuongTrichLuc());
        clone.setNoiThuongTruDoiTuongTrichLucTinhId(getNoiThuongTruDoiTuongTrichLucTinhId());
        clone.setNoiThuongTruDoiTuongTrichLucQuanHuyenId(getNoiThuongTruDoiTuongTrichLucQuanHuyenId());
        clone.setNoiThuongTruDoiTuongTrichLucPhuongXaId(getNoiThuongTruDoiTuongTrichLucPhuongXaId());
        clone.setNoiThuongTruDoiTuongTrichLucDiaChi(getNoiThuongTruDoiTuongTrichLucDiaChi());
        clone.setSoSoHoKhauDoiTuongTrichLuc(getSoSoHoKhauDoiTuongTrichLuc());
        clone.setNoiDungTrichLuc(getNoiDungTrichLuc());
        clone.setNgayDeNghiTraTrichLuc(getNgayDeNghiTraTrichLuc());
        clone.setNgayLapTrichLuc(getNgayLapTrichLuc());
        clone.setChuThich(getChuThich());
        clone.setMaYeuCauTrichLuc(getMaYeuCauTrichLuc());
        clone.setHoVaTenGoiKhac(getHoVaTenGoiKhac());
        clone.setHoVaTenCha(getHoVaTenCha());
        clone.setHoVaTenMe(getHoVaTenMe());
        clone.setHoTenVoHoacChong(getHoTenVoHoacChong());
        clone.setCoQuanYeuCauTrichLuc(getCoQuanYeuCauTrichLuc());
        clone.setNoiTamTruDoiTuongTrichLucTinhId(getNoiTamTruDoiTuongTrichLucTinhId());
        clone.setNoiTamTruDoiTuongTrichLucQuanHuyenId(getNoiTamTruDoiTuongTrichLucQuanHuyenId());
        clone.setNoiTamTruDoiTuongTrichLucPhuongXaId(getNoiTamTruDoiTuongTrichLucPhuongXaId());
        clone.setNoiTamTruDoiTuongTrichLucDiaChi(getNoiTamTruDoiTuongTrichLucDiaChi());
        clone.setDaTrichLuc(getDaTrichLuc());
        clone.setNoiSinh(getNoiSinh());
        clone.setNoiSinhTinhId(getNoiSinhTinhId());
        clone.setNoiSinhQuanHuyenId(getNoiSinhQuanHuyenId());
        clone.setNoiSinhPhuongXaId(getNoiSinhPhuongXaId());

        return clone;
    }

    @Override
    public int compareTo(YeuCauTrichLuc yeuCauTrichLuc) {
        int value = 0;

        value = DateUtil.compareTo(getCreateDate(),
                yeuCauTrichLuc.getCreateDate());

        value = value * -1;

        if (value != 0) {
            return value;
        }

        return 0;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }

        if (!(obj instanceof YeuCauTrichLucClp)) {
            return false;
        }

        YeuCauTrichLucClp yeuCauTrichLuc = (YeuCauTrichLucClp) obj;

        long primaryKey = yeuCauTrichLuc.getPrimaryKey();

        if (getPrimaryKey() == primaryKey) {
            return true;
        } else {
            return false;
        }
    }

    @Override
    public int hashCode() {
        return (int) getPrimaryKey();
    }

    @Override
    public String toString() {
        StringBundler sb = new StringBundler(87);

        sb.append("{yeuCauTrichLucId=");
        sb.append(getYeuCauTrichLucId());
        sb.append(", userId=");
        sb.append(getUserId());
        sb.append(", userName=");
        sb.append(getUserName());
        sb.append(", createDate=");
        sb.append(getCreateDate());
        sb.append(", modifiedDate=");
        sb.append(getModifiedDate());
        sb.append(", hoVaTenNguoiYeuCauTrichLuc=");
        sb.append(getHoVaTenNguoiYeuCauTrichLuc());
        sb.append(", kinhGui=");
        sb.append(getKinhGui());
        sb.append(", gioiTinh=");
        sb.append(getGioiTinh());
        sb.append(", quocTich=");
        sb.append(getQuocTich());
        sb.append(", danTocId=");
        sb.append(getDanTocId());
        sb.append(", soCMNDDoiTuongTrichLuc=");
        sb.append(getSoCMNDDoiTuongTrichLuc());
        sb.append(", ngayCapCMNDDoiTuongTrichLuc=");
        sb.append(getNgayCapCMNDDoiTuongTrichLuc());
        sb.append(", noiCapCMNDDoiTuongTrichLuc=");
        sb.append(getNoiCapCMNDDoiTuongTrichLuc());
        sb.append(", soHoChieuDoiTuongTrichLuc=");
        sb.append(getSoHoChieuDoiTuongTrichLuc());
        sb.append(", ngayCapHoChieuDoiTuongTrichLuc=");
        sb.append(getNgayCapHoChieuDoiTuongTrichLuc());
        sb.append(", noiCapHoChieuDoiTuongTrichLuc=");
        sb.append(getNoiCapHoChieuDoiTuongTrichLuc());
        sb.append(", soDinhDanhCaNhanDoiTuongTrichLuc=");
        sb.append(getSoDinhDanhCaNhanDoiTuongTrichLuc());
        sb.append(", hoVaTenDoiTuongTrichLuc=");
        sb.append(getHoVaTenDoiTuongTrichLuc());
        sb.append(", ngaySinhDoiTuongTrichLuc=");
        sb.append(getNgaySinhDoiTuongTrichLuc());
        sb.append(", noiThuongTruDoiTuongTrichLucTinhId=");
        sb.append(getNoiThuongTruDoiTuongTrichLucTinhId());
        sb.append(", noiThuongTruDoiTuongTrichLucQuanHuyenId=");
        sb.append(getNoiThuongTruDoiTuongTrichLucQuanHuyenId());
        sb.append(", noiThuongTruDoiTuongTrichLucPhuongXaId=");
        sb.append(getNoiThuongTruDoiTuongTrichLucPhuongXaId());
        sb.append(", noiThuongTruDoiTuongTrichLucDiaChi=");
        sb.append(getNoiThuongTruDoiTuongTrichLucDiaChi());
        sb.append(", soSoHoKhauDoiTuongTrichLuc=");
        sb.append(getSoSoHoKhauDoiTuongTrichLuc());
        sb.append(", noiDungTrichLuc=");
        sb.append(getNoiDungTrichLuc());
        sb.append(", ngayDeNghiTraTrichLuc=");
        sb.append(getNgayDeNghiTraTrichLuc());
        sb.append(", ngayLapTrichLuc=");
        sb.append(getNgayLapTrichLuc());
        sb.append(", chuThich=");
        sb.append(getChuThich());
        sb.append(", maYeuCauTrichLuc=");
        sb.append(getMaYeuCauTrichLuc());
        sb.append(", hoVaTenGoiKhac=");
        sb.append(getHoVaTenGoiKhac());
        sb.append(", hoVaTenCha=");
        sb.append(getHoVaTenCha());
        sb.append(", hoVaTenMe=");
        sb.append(getHoVaTenMe());
        sb.append(", hoTenVoHoacChong=");
        sb.append(getHoTenVoHoacChong());
        sb.append(", coQuanYeuCauTrichLuc=");
        sb.append(getCoQuanYeuCauTrichLuc());
        sb.append(", noiTamTruDoiTuongTrichLucTinhId=");
        sb.append(getNoiTamTruDoiTuongTrichLucTinhId());
        sb.append(", noiTamTruDoiTuongTrichLucQuanHuyenId=");
        sb.append(getNoiTamTruDoiTuongTrichLucQuanHuyenId());
        sb.append(", noiTamTruDoiTuongTrichLucPhuongXaId=");
        sb.append(getNoiTamTruDoiTuongTrichLucPhuongXaId());
        sb.append(", noiTamTruDoiTuongTrichLucDiaChi=");
        sb.append(getNoiTamTruDoiTuongTrichLucDiaChi());
        sb.append(", daTrichLuc=");
        sb.append(getDaTrichLuc());
        sb.append(", noiSinh=");
        sb.append(getNoiSinh());
        sb.append(", noiSinhTinhId=");
        sb.append(getNoiSinhTinhId());
        sb.append(", noiSinhQuanHuyenId=");
        sb.append(getNoiSinhQuanHuyenId());
        sb.append(", noiSinhPhuongXaId=");
        sb.append(getNoiSinhPhuongXaId());
        sb.append("}");

        return sb.toString();
    }

    @Override
    public String toXmlString() {
        StringBundler sb = new StringBundler(133);

        sb.append("<model><model-name>");
        sb.append("qldc.pm.tienan.model.YeuCauTrichLuc");
        sb.append("</model-name>");

        sb.append(
            "<column><column-name>yeuCauTrichLucId</column-name><column-value><![CDATA[");
        sb.append(getYeuCauTrichLucId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>userId</column-name><column-value><![CDATA[");
        sb.append(getUserId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>userName</column-name><column-value><![CDATA[");
        sb.append(getUserName());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>createDate</column-name><column-value><![CDATA[");
        sb.append(getCreateDate());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
        sb.append(getModifiedDate());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hoVaTenNguoiYeuCauTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getHoVaTenNguoiYeuCauTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>kinhGui</column-name><column-value><![CDATA[");
        sb.append(getKinhGui());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>gioiTinh</column-name><column-value><![CDATA[");
        sb.append(getGioiTinh());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>quocTich</column-name><column-value><![CDATA[");
        sb.append(getQuocTich());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>danTocId</column-name><column-value><![CDATA[");
        sb.append(getDanTocId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>soCMNDDoiTuongTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getSoCMNDDoiTuongTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>ngayCapCMNDDoiTuongTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getNgayCapCMNDDoiTuongTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiCapCMNDDoiTuongTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getNoiCapCMNDDoiTuongTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>soHoChieuDoiTuongTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getSoHoChieuDoiTuongTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>ngayCapHoChieuDoiTuongTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getNgayCapHoChieuDoiTuongTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiCapHoChieuDoiTuongTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getNoiCapHoChieuDoiTuongTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>soDinhDanhCaNhanDoiTuongTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getSoDinhDanhCaNhanDoiTuongTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hoVaTenDoiTuongTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getHoVaTenDoiTuongTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>ngaySinhDoiTuongTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getNgaySinhDoiTuongTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiThuongTruDoiTuongTrichLucTinhId</column-name><column-value><![CDATA[");
        sb.append(getNoiThuongTruDoiTuongTrichLucTinhId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiThuongTruDoiTuongTrichLucQuanHuyenId</column-name><column-value><![CDATA[");
        sb.append(getNoiThuongTruDoiTuongTrichLucQuanHuyenId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiThuongTruDoiTuongTrichLucPhuongXaId</column-name><column-value><![CDATA[");
        sb.append(getNoiThuongTruDoiTuongTrichLucPhuongXaId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiThuongTruDoiTuongTrichLucDiaChi</column-name><column-value><![CDATA[");
        sb.append(getNoiThuongTruDoiTuongTrichLucDiaChi());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>soSoHoKhauDoiTuongTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getSoSoHoKhauDoiTuongTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiDungTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getNoiDungTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>ngayDeNghiTraTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getNgayDeNghiTraTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>ngayLapTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getNgayLapTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>chuThich</column-name><column-value><![CDATA[");
        sb.append(getChuThich());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>maYeuCauTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getMaYeuCauTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hoVaTenGoiKhac</column-name><column-value><![CDATA[");
        sb.append(getHoVaTenGoiKhac());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hoVaTenCha</column-name><column-value><![CDATA[");
        sb.append(getHoVaTenCha());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hoVaTenMe</column-name><column-value><![CDATA[");
        sb.append(getHoVaTenMe());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hoTenVoHoacChong</column-name><column-value><![CDATA[");
        sb.append(getHoTenVoHoacChong());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>coQuanYeuCauTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getCoQuanYeuCauTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiTamTruDoiTuongTrichLucTinhId</column-name><column-value><![CDATA[");
        sb.append(getNoiTamTruDoiTuongTrichLucTinhId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiTamTruDoiTuongTrichLucQuanHuyenId</column-name><column-value><![CDATA[");
        sb.append(getNoiTamTruDoiTuongTrichLucQuanHuyenId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiTamTruDoiTuongTrichLucPhuongXaId</column-name><column-value><![CDATA[");
        sb.append(getNoiTamTruDoiTuongTrichLucPhuongXaId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiTamTruDoiTuongTrichLucDiaChi</column-name><column-value><![CDATA[");
        sb.append(getNoiTamTruDoiTuongTrichLucDiaChi());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>daTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getDaTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiSinh</column-name><column-value><![CDATA[");
        sb.append(getNoiSinh());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiSinhTinhId</column-name><column-value><![CDATA[");
        sb.append(getNoiSinhTinhId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiSinhQuanHuyenId</column-name><column-value><![CDATA[");
        sb.append(getNoiSinhQuanHuyenId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiSinhPhuongXaId</column-name><column-value><![CDATA[");
        sb.append(getNoiSinhPhuongXaId());
        sb.append("]]></column-value></column>");

        sb.append("</model>");

        return sb.toString();
    }
}
